Skip to content

Conversation

mschauer
Copy link
Owner

@mschauer mschauer commented Aug 6, 2023

See https://ftp.cs.ucla.edu/pub/stat_ser/r185-dor-tarsi.pdf. The implementation marks the sinks which were already oriented in a bit vector and does not make a copy of the graph.

@mschauer mschauer merged commit e9bae30 into master Aug 7, 2023
@mschauer mschauer deleted the dortarsi branch August 7, 2023 09:11
@mwien
Copy link
Collaborator

mwien commented Aug 7, 2023

Nice implementation!

Going through vertices from low to high degree in line

for x in vertices(g)
is a potential optimization, but for sparse graphs it should not matter much in any case.

@mwien
Copy link
Collaborator

mwien commented Aug 7, 2023

I started the following WIP PR #113 which is somewhat related as it is about counting and listing the consistent extensions of a PDAG/CPDAG (in contrast to finding an arbitrary one).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants